import request from '@/utils/request'

// 查询视频监控分页
export function pageMonitor(query) {
  return request({
    url: '/video/monitor/page',
    method: 'get',
    params: query
  })
}

// 查询视频监控列表
export function listMonitor(query) {
  return request({
    url: '/video/monitor/list',
    method: 'get',
    params: query
  })
}

// 查询视频监控详细
export function getMonitor(monitorId) {
  return request({
    url: '/video/monitor/info/' + monitorId,
    method: 'get'
  })
}

// 新增视频监控
export function addMonitor(data) {
  return request({
    url: '/video/monitor',
    method: 'post',
    data: data
  })
}

// 修改视频监控
export function updateMonitor(data) {
  return request({
    url: '/video/monitor',
    method: 'put',
    data: data
  })
}

// 删除视频监控
export function delMonitor(data) {
  return request({
    url: '/video/monitor/remove/batch',
    method: 'delete',
    data
  })
}

// 导出视频监控
export function exportMonitor(query) {
  return request({
    url: '/video/monitor/export',
    method: 'get',
    params: query
  })
}

// 下载模板视频监控
export function downImportTemplate() {
  return request({
    url: '/video/monitor/importTemplate',
    method: 'get'
  })
}
// 查询车间管理列表
export function listShop(query) {
  return request({
    url: '/system/shop/list',
    method: 'get',
    params: query
  })
}
// 查询工房管理列表
export function listRoom(query) {
  return request({
    url: '/system/room/list',
    method: 'get',
    params: query
  })
}
export function editScreen(data) {
  return request({
    url: '/video/monitor/editScreen',
    method: 'put',
    data: data
  })
}
export function syncVideoList() {
  return request({
    url: '/video/monitor/syncVideoList',
    method: 'get',
  })
}
